package com.lh.blogTrivia.feign;

import com.lh.blogCommon.result.LhR;
import com.lh.blogTrivia.feign.Impl.OssFeignServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//创建时间 2021/3/18
//创建人 lh
//描述
@Service
@FeignClient(value = "aliyun-oss",fallback = OssFeignServiceImpl.class)
public interface OssFeignService {

    @DeleteMapping("/admin/oss/file/remove")
    LhR delete(@RequestParam("url") String url);

    @DeleteMapping("/admin/oss/file/removeList")
    LhR removeList(@RequestParam("urls") List<String> urls);
}
